package com.university.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Studentcomplain entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "studentcomplain", catalog = "university")

public class Studentcomplain implements java.io.Serializable {

	// Fields

	private Integer studentComplainId;
	private Student student;
	private Company company;
	private String studentComplainReason;
	private String studentComplainResult;
	private Boolean studentComplainEnable;

	// Constructors

	/** default constructor */
	public Studentcomplain() {
	}

	@Override
	public String toString() {
		return "Studentcomplain [studentComplainId=" + studentComplainId + ", student=" + student + ", company="
				+ company + ", studentComplainReason=" + studentComplainReason + ", studentComplainResult="
				+ studentComplainResult + ", studentComplainEnable=" + studentComplainEnable + "]";
	}

	/** full constructor */
	public Studentcomplain(Student student, Company company, String studentComplainReason, String studentComplainResult,
			Boolean studentComplainEnable) {
		this.student = student;
		this.company = company;
		this.studentComplainReason = studentComplainReason;
		this.studentComplainResult = studentComplainResult;
		this.studentComplainEnable = studentComplainEnable;
	}

	// Property accessors
	@Id
	@GeneratedValue

	@Column(name = "studentComplain_id", unique = true, nullable = false)

	public Integer getStudentComplainId() {
		return this.studentComplainId;
	}

	public void setStudentComplainId(Integer studentComplainId) {
		this.studentComplainId = studentComplainId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "studentComplain_studentId")

	public Student getStudent() {
		return this.student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "studentComplain_companyId")

	public Company getCompany() {
		return this.company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	@Column(name = "studentComplain_reason", length = 200)

	public String getStudentComplainReason() {
		return this.studentComplainReason;
	}

	public void setStudentComplainReason(String studentComplainReason) {
		this.studentComplainReason = studentComplainReason;
	}

	@Column(name = "studentComplain_result", length = 200)

	public String getStudentComplainResult() {
		return this.studentComplainResult;
	}

	public void setStudentComplainResult(String studentComplainResult) {
		this.studentComplainResult = studentComplainResult;
	}

	@Column(name = "studentComplain_enable", insertable = false)

	public Boolean getStudentComplainEnable() {
		return this.studentComplainEnable;
	}

	public void setStudentComplainEnable(Boolean studentComplainEnable) {
		this.studentComplainEnable = studentComplainEnable;
	}

}